<?php
/**
 * This file contains the class RecentListingsView which provides
 * all of the text requirements for the alerts page
 *
 * @copyright  2009 A Memory Tree
 * @license    A Memory Tree License
 */
/**
 * This class provides the text for the alerts page
 *
 * @copyright  2009 A Memory Tree
 * @license    A Memory Tree License
 */
class RecentListingsView
{
    /**
     * A place to store pre-prepared messages
     *
     * @var array[string]string
     */
    private $_text;
    /**
      * The html class that provides helpers to display the text
     *
     * @var Html
     */
    private $_html;
    /**
     * Builds the list of text messages
     * 
     * @return void
     * @param Html &$html
     */
    public function __construct(&$html)
    {
        $this->_html = $html;
    }
    /**
     * The contents for the page
     *
     * @return string
     */
    function content($peopleList)
    {
        $content = <<< EOT
            <h2>Todays Listings</h2>
EOT;
        $content = $content.$peopleList;
        return $content;
    }
    /**
     * Render the page
     *
     * @return string
     * @param string $content
     */
    function render($content)
    {
        return <<< EOT
<div id="centerbar">
$content
</div>

EOT;
    }
}
?>
